﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace SmartDeviceProject9
{
  public class Context{

      public static Server.PdaService Service
      {
          get;
          set;

      }
      /// <summary>
      /// 账号Id
      /// </summary>
      public static string AccountId {get; set;}
      
      //用户名
      public static string UserName { get; set; }

      /// <summary>
      /// 当前用户组织
      /// </summary>
      public static string UserCurrentOrgName { get; set; }
      /// <summary>
      /// 组织Id
      /// </summary>
      public static string UserCurrentOrgId { get; set; }
      /// <summary>
      /// 用户密码
      /// </summary>
      public static string Password { get; set; }

      public static int LocalId {
          get {
              return 2052; 
          }
      }
      /// <summary>
      /// 组织
      /// </summary>
      public static Dictionary<string,Org> Orgs
      {
          get;
          set;

      }
      /// <summary>
      /// 生产机级
      /// </summary>
      public static Dictionary<string, string> Machines
      {
          get;
          set;
      }
  
  }
    /// <summary>
    /// 组织
    /// </summary>
  public class Org {
      /// <summary>
      /// 组织名
      /// </summary>
      public string Name;
      /// <summary>
      /// 组织编号
      /// </summary>
      public string Number;
      /// <summary>
      /// 组织Id
      /// </summary>
      public string OrgId;
      /// <summary>
      /// 仓库集合
      /// </summary>
      public List<Stk> _stks;

  }
    /// <summary>
    /// 仓库
    /// </summary>
  public class Stk {
      /// <summary>
      /// 仓库名
      /// </summary>
      public string Name;
      /// <summary>
      /// 仓库编号
      /// </summary>
      public string Number;
      /// <summary>
      /// 仓库Id
      /// </summary>
      public string StkId;
  
  }
}
